﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:testVideo"
        xmlns:ProjetHologramme="clr-namespace:ProjetHologramme" x:Class="testVideo.MainWindow"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525" Background="#FF0F0F0F" Loaded="fenHoloXia_Loaded">
    <Window.Resources>
        <ProjetHologramme:HoloXiaDataSet x:Key="HoloXiaDataSet"/>
        <CollectionViewSource x:Key="fileViewSource" Source="{Binding File, Source={StaticResource HoloXiaDataSet}}"/>
    </Window.Resources>
    <Grid x:Name="grid">
        <Grid x:Name="gridHolo" HorizontalAlignment="Left" Height="300" VerticalAlignment="Top" Width="299" Margin="135,10,0,0">
            <Button x:Name="buttonValider" Content="Valider" HorizontalAlignment="Left" Margin="-99,48,0,0" VerticalAlignment="Top" Width="75" Click="button_Click"/>
        </Grid>
        <Button x:Name="btnQuitter" Content="Quitter" HorizontalAlignment="Left" Margin="434,281,0,0" VerticalAlignment="Top" Width="75"/>
        <Grid x:Name="grid1" DataContext="{StaticResource fileViewSource}" HorizontalAlignment="Left" Margin="32,24,0,0" VerticalAlignment="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Label Content="name:" Grid.Column="0" HorizontalAlignment="Left" Margin="3" Grid.Row="0" VerticalAlignment="Center"/>
            <ComboBox x:Name="nameComboBox" DisplayMemberPath="name" HorizontalAlignment="Left" Height="Auto" ItemsSource="{Binding}" Margin="0,0,0,10" Grid.Row="0" VerticalAlignment="Center" Width="120" Grid.ColumnSpan="2">
                <ComboBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel/>
                    </ItemsPanelTemplate>
                </ComboBox.ItemsPanel>
            </ComboBox>
        </Grid>
    </Grid>
</Window>
